package com.amigo.online.provider.ffmpeg.rocketmq.model;


import java.io.Serializable;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonIgnore;

public class BaseMqSendModel implements Serializable {
    private static final long serialVersionUID = -5656703488042160874L;
    @JsonIgnore
    private String keys;
    private String beanName;
    private String tag;
    private Object sendContentBean;

    public BaseMqSendModel(String beanName) {
        super();
        this.beanName = beanName;
    }

    public BaseMqSendModel(String beanName, Object sendContentBean) {
        super();
        this.beanName = beanName;
        this.sendContentBean = sendContentBean;
    }

    public BaseMqSendModel() {
        super();
    }

    public <T> T getSendContentBean(Class<T> clazz) {
        return ((JSONObject) sendContentBean).toJavaObject(clazz);
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public Object getSendContentBean() {
        return sendContentBean;
    }

    public void setSendContentBean(Object sendContentBean) {
        this.sendContentBean = sendContentBean;
    }

    public String getKeys() {
        return keys;
    }

    public void setKeys(String keys) {
        this.keys = keys;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }


}
